﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 门诊结算表
    /// </summary>
    public partial class InsuranceTbOutpatientSettleInfo
    {
        /// <summary>
        /// ID
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 结算流水号
        /// </summary>
        public long? MzNo { get; set; }
        /// <summary>
        /// 患者标识
        /// </summary>
        public long? PatId { get; set; }
        /// <summary>
        /// 挂号流水号
        /// </summary>
        public long? RegNo { get; set; }
        /// <summary>
        /// 挂号序号
        /// </summary>
        public int? RegistOrder { get; set; }
        /// <summary>
        /// 发票流水号
        /// </summary>
        public long? InvoiceId { get; set; }
        /// <summary>
        /// 发票号
        /// </summary>
        public long? InvoiceNo { get; set; }
        /// <summary>
        /// 发票信息ID
        /// </summary>
        public long? InvoiceInfoId { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public int? OpCode { get; set; }
        /// <summary>
        /// 结算日期
        /// </summary>
        public DateTime? SettleTime { get; set; }
        /// <summary>
        /// 收费科室代码
        /// </summary>
        public int? ChargeDeptCode { get; set; }
        /// <summary>
        /// 科室代码
        /// </summary>
        public int? DeptCode { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string? PatName { get; set; }
        /// <summary>
        /// 卡号
        /// </summary>
        public string? CardNo { get; set; }
        /// <summary>
        /// 卡类别
        /// </summary>
        public string? CardType { get; set; }
        /// <summary>
        /// 院号
        /// </summary>
        public string? HisCardNo { get; set; }
        /// <summary>
        /// 医保收费类型
        /// </summary>
        public int? ChargeType { get; set; }
        /// <summary>
        /// 凭证号码
        /// </summary>
        public string? EvidenceNo { get; set; }
        /// <summary>
        /// 凭证类型
        /// </summary>
        public string? EvidenceType { get; set; }
        /// <summary>
        /// 医疗项目
        /// </summary>
        public string? CureItem { get; set; }
        /// <summary>
        /// 诊断编码
        /// </summary>
        public string? DiagCode { get; set; }
        /// <summary>
        /// 单位编码
        /// </summary>
        public string? EmpNo { get; set; }
        /// <summary>
        /// 病人类型
        /// </summary>
        public string? PatType { get; set; }
        /// <summary>
        /// 当年账户余额
        /// </summary>
        public decimal? CurrentAccountAmount { get; set; }
        /// <summary>
        /// 历年账户余额
        /// </summary>
        public decimal? LastAccountAmount { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        public decimal? TotalAmount { get; set; }
        /// <summary>
        /// 自费金额(非医保结算范围金额)
        /// </summary>
        public decimal? NonInsuranceAmount { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal? DiscountAmount { get; set; }
        /// <summary>
        /// 定额金额
        /// </summary>
        public decimal? QuotaAmount { get; set; }
        /// <summary>
        /// 自负金额(医保现金部分)
        /// </summary>
        public decimal? SelfPayAmount { get; set; }
        /// <summary>
        /// 分类自负金额
        /// </summary>
        public decimal? PreselfpayAmount { get; set; }
        /// <summary>
        /// 现金金额
        /// </summary>
        public decimal? CashAmount { get; set; }
        /// <summary>
        /// 分币误差
        /// </summary>
        public decimal? ErrorCents { get; set; }
        /// <summary>
        /// 统筹累计标志
        /// </summary>
        public string? PubAccumulateFlag { get; set; }
        /// <summary>
        /// 统筹累计金额
        /// </summary>
        public decimal? PubAccumulateAmt { get; set; }
        /// <summary>
        /// 住院统筹累计金额
        /// </summary>
        public decimal? HospPubAccumulateAmt { get; set; }
        /// <summary>
        /// 欠款标志
        /// </summary>
        public decimal? DebtFlag { get; set; }
        /// <summary>
        /// 欠款金额
        /// </summary>
        public decimal? AebtAmount { get; set; }
        /// <summary>
        /// 欠款补收金额
        /// </summary>
        public decimal? SupplementaryPayAmt { get; set; }
        /// <summary>
        /// 四医联动优惠标志
        /// </summary>
        public int? FourMedicalFlag { get; set; }
        /// <summary>
        /// 四医联动优惠金额
        /// </summary>
        public decimal? FourMedicalDiscountAmt { get; set; }
        /// <summary>
        /// 干保标志
        /// </summary>
        public int? CadreFlag { get; set; }
        /// <summary>
        /// 干保金额
        /// </summary>
        public decimal? CadreAmount { get; set; }
        /// <summary>
        /// 干保特殊医疗费用标志
        /// </summary>
        public decimal? CadreSpecialAmount { get; set; }
        /// <summary>
        /// 干保范围外金额
        /// </summary>
        public decimal? NonCadreAmount { get; set; }
        /// <summary>
        /// 特殊优惠金额
        /// </summary>
        public decimal? DiscountSpecialAmt { get; set; }
        /// <summary>
        /// 特殊挂号优惠金额
        /// </summary>
        public decimal? DiscountSpecialRegAmt { get; set; }
        /// <summary>
        /// 特殊诊疗优惠金额
        /// </summary>
        public decimal? DiscountSpecialDiagAmt { get; set; }
        /// <summary>
        /// 减免金额
        /// </summary>
        public decimal? DeductionAmount { get; set; }
        /// <summary>
        /// 实收金额
        /// </summary>
        public decimal? ReceiveAmount { get; set; }
        /// <summary>
        /// 找零金额
        /// </summary>
        public decimal? ChangeAmount { get; set; }
        /// <summary>
        /// 原总金额
        /// </summary>
        public decimal? OriginalTotalAmount { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        public int? PayType { get; set; }
        /// <summary>
        /// 外部订单号
        /// </summary>
        public string? OutTradeNo { get; set; }
        /// <summary>
        /// 支付流水号
        /// </summary>
        public string? TradeNo { get; set; }
        /// <summary>
        /// 中心流水号，交易流水号
        /// </summary>
        public string? TradeSerialNo { get; set; }
        /// <summary>
        /// 计算流水号
        /// </summary>
        public string? CalculationSerial { get; set; }
        /// <summary>
        /// 医保中心编号(外地医保)
        /// </summary>
        public string? CenterNo { get; set; }
        /// <summary>
        /// 医保结算状态
        /// </summary>
        public int? InsuranceStatus { get; set; }
        /// <summary>
        /// 帐户标志
        /// </summary>
        public string? AccountFlag { get; set; }
        /// <summary>
        /// 退收据号
        /// </summary>
        public long? ReturnMzNo { get; set; }
        /// <summary>
        /// 记录状态
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 挂号收费标志
        /// </summary>
        public int? RegistOrCharge { get; set; }
        /// <summary>
        /// 门急诊标志
        /// </summary>
        public int? IsEmergency { get; set; }
        /// <summary>
        /// 家床序号
        /// </summary>
        public string? HospHomeBedNo { get; set; }
        /// <summary>
        /// 统计标志
        /// </summary>
        public int? StatFlag { get; set; }
        /// <summary>
        /// 确认标志
        /// </summary>
        public int? ComfirmFlag { get; set; }
        /// <summary>
        /// 确认操作员
        /// </summary>
        public int? ConfirmOpCode { get; set; }
        /// <summary>
        /// 确认时间
        /// </summary>
        public DateTime? ConfirmTime { get; set; }
        /// <summary>
        /// 分诊挂号标志
        /// </summary>
        public int? TriageFlag { get; set; }
        /// <summary>
        /// 药房流水号
        /// </summary>
        public string? DrugSerialNo { get; set; }
        /// <summary>
        /// 分发票标志
        /// </summary>
        public int? InvoiceDevideFlag { get; set; }
        /// <summary>
        /// 免费体检标志
        /// </summary>
        public int? FreeExamFlag { get; set; }
        /// <summary>
        /// 打印标记
        /// </summary>
        public int? PrintFlag { get; set; }
        /// <summary>
        /// 发票打印日期
        /// </summary>
        public DateTime? PrintTime { get; set; }
        /// <summary>
        /// 发票打印操作员
        /// </summary>
        public int? Printer { get; set; }
        /// <summary>
        /// app接口代码
        /// </summary>
        public string? AppInterfaceCode { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Memo { get; set; }
        /// <summary>
        /// 时间戳
        /// </summary>
        public byte[] TimeTemp { get; set; } = null!;
    }
}
